import Request from "./request";

//溯源统计
export function getSYTJByMarketATy() {
  return Request({
    url:
      "/wwgsp/getSYTJByMarketATy" +
      "?marketId=" +
      localStorage.getItem("marketId"),
    method: "post",
  });
}

//项目检测分析当前
export function getJcxmByMarketATy() {
  return Request({
    url:
      "/wwgsp/getJcxmByMarketATy" +
      "?marketId=" +
      localStorage.getItem("marketId"),
    method: "post",
  });
}

// 食用农产品疑似阳性风险预警
export function getYSYXYJByPFMarket() {
  return Request({
    url:
      "/wwgsp/getYSYXYJByPFMarketATy" +
      "?marketId=" +
      localStorage.getItem("marketId"),
    method: "post",
  });
}

//获取城市信息
export function getCityData() {
  return Request({
    url:
      "/wwgsp/getYsjcsjByMarketATy" +
      "?marketId=" +
      localStorage.getItem("marketId"),
    method: "post",
  });
}

//本人交易数据
export function getJysjByMarketATy() {
  return Request({
    url:
      "/wwgsp/getJysjByMarketATy" +
      "?marketId=" +
      localStorage.getItem("marketId"),
    method: "post",
  });
}

//登录接口
export function getLogin() {
  return Request({
    url: "/login/login",
    method: "post",
    data: {
      username: "admin",
      password: "abc123456",
      key: "520",
      type: "ht",
      client: "2",
    },
  });
}

//获取市场id接口
export function getMarkitId() {
  return Request({
    url: "/wwgsp/getQJLbByMarketATy",
    method: "post",
  });
}

//获取检测类别项目
export function getJcxmLbByMarketATy() {
  return Request({
    url: "/wwgsp/getJcxmLbByMarketATy",
    method: "post",
    data: {
      marketId: localStorage.getItem("marketId"),
    },
  });
}

//检测商品类别分析
export function getJcspLbByMarketATy() {
  return Request({
    url: "/wwgsp/getJcspLbByMarketATy",
    method: "post",
    data: {
      marketId: localStorage.getItem("marketId"),
    },
  });
}

//疑似阳性数排行榜
export function getYsyxphbByMarketATy() {
  return Request({
    url: "/wwgsp/getYsyxphbByMarketATy",
    method: "post",
    data: {
      marketId: localStorage.getItem("marketId"),
    },
  });
}

//使用农产品安全统计
export function getSYNCPByMarketATy() {
  return Request({
    url: "/wwgsp/getSYNCPByMarketATy",
    method: "post",
    data: {
      marketId: localStorage.getItem("marketId"),
    },
  });
}

//疑似阳性风险预警
export function getYSYXFXYJByMarketATy() {
  return Request({
    url: "/wwgsp/getYSYXFXYJByMarketATy",
    method: "post",
    data: {
      marketId: localStorage.getItem("marketId"),
    },
  });
}

//交易商品类别
export function getJysplbByMarketATy() {
  return Request({
    url: "/wwgsp/getJysplbByMarketATy",
    method: "post",
    data: {
      marketId: localStorage.getItem("marketId"),
    },
  });
}

//检测项目分析
export function getJCXMFX() {
  return Request({
    url: "/wwgsp/getJcxmByMarketATy",
    method: "post",
    data: {
      marketId: localStorage.getItem("marketId"),
    },
  });
}

//检测品类占比
export function getJCPLZB() {
  return Request({
    url: "/wwgsp/getJCPLZBByPFMarket",
    method: "post",
    data: {
      marketId: localStorage.getItem("marketId"),
    },
  });
}

//检测品类占比
export function getCDLYFXByPFMarket() {
  return Request({
    url: "/wwgsp/getCDLYFXByPFMarket",
    method: "post",
    data: {
      marketId: localStorage.getItem("marketId"),
    },
  });
}

//食用农产品安全指数
export function getDYNCPByPFMarket() {
  return Request({
    url: "/wwgsp/getDYNCPByPFMarket",
    method: "post",
    data: {
      marketId: localStorage.getItem("marketId"),
    },
  });
}

//食用农产品安全指数
export function getCDFXByMarketATy() {
  return Request({
    url: "/wwgsp/getCDFXByMarketATy",
    method: "post",
    data: {
      marketId: localStorage.getItem("marketId"),
    },
  });
}


export function getJYHJcHGLByMarket() {
  return Request({
    url:
      "/wwgsp/getJYHJcHGLByMarket" +
      "?marketId=" +
      localStorage.getItem("marketId"),
    method: "post",
  });
}


